package com.example.base.utils

import com.example.base.BaseActivity
import android.content.Context
import android.content.Intent

/**
 * zhangjunfei  2020/11/13 10:45
 */

const val ButtonShowActivity = "com.example.widget.view.ButtonShowActivity"
const val StateActivity = "com.example.widget.view.StateActivity"
const val TextShowActivity = "com.example.widget.view.TextShowActivity"
const val ScrollViewActivity = "com.example.widget.view.ScrollViewActivity"
const val CustomViewActivity = "com.example.widget.view.CustomViewActivity"
const val NavigationViewActivity = "com.example.widget.view.NavigationViewActivity"
const val LiveDataActivity = "com.example.widget.view.LiveDataActivity"
const val ImageActivity = "com.example.widget.view.ImageActivity"


fun <T : BaseActivity> goTo(context: Context, clazz: Class<T>) {
    context.startActivity(Intent(context, clazz))
}

fun goTo(context: Context, clazzName: String) {
    context.startActivity(Intent(context, Class.forName(clazzName)))
}